<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<meta name="description" content="">
<meta name="author" content="">

<title>WINIT OAuth授权失败</title>

<!-- Bootstrap core CSS -->
<link href="js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->


</head>
<body>

	<!-- header -->
	<div id="header">
		<div class="lay-top">
			<div class="lay-top-inner clearfix">
				<i class="logo"></i>
				<div class="text-hide clearfix">
					<i class="logo-line m-lr-20"></i> <span style="">账户授权</span>
				</div>
			</div>
		</div>
	</div>
	<!-- /header -->
	<!-- content -->
	<div id="content" class="authorization-content">
		<div>
			<div>
				<i class="icon failed"></i> <span class="authorization-prompt">授权失败！</span>

				<h6 class="m-l-90" style="color: red">ERROR_CODE:${error}</h6>
				<h6 class="m-l-90" style="color: red">ERROR_MESSAGE:${error_description}</h6>
				<br/>
				<br>
				<!--  <span class="authorization-information">允许应用：通途TONGTOOL访问。</span> -->
			</div>
			<div>
				<div class="m-l-90">
					<p>同意授权将允许应用分享您的万邑通数据。请放心，我们不会分享您的账户密码和敏感信息。</p>
					<p>
						您可以任何时候在<a href="javascript:;" class="m-xs-lr">授权管理</a>中解除授权，终止数据分享；或在授权失效时刷新授权。
					</p>
					<p>
						请仔细阅读<a href="javascript:;" class="m-xs-lr">《Winit服务条款隐私政策》</a>，这些政策将决定您使用的此项服务。
					</p>
					<div class="m-t-55">
						<p>
					<c:choose>

						<c:when test="${empty client_name}">
						授权失败，页面将在<span
								class="countdowm-time m-xs-lr" id="countDown">5</span>秒后自动跳转
						</c:when>

						<c:otherwise>
						您授权${client_name}失败，页面将在<span
								class="countdowm-time m-xs-lr" id="countDown">5</span>秒后自动跳转
						</c:otherwise>

					</c:choose>
						</p>
					</div>
					<div class="m-t-55 clearfix">
						<div class="m-r-35 float-left">
							<!--  <a href="${client_url}" class="confirm-button">现在返回</a>-->
							<a href="javascript:void(0)" onclick="subgo()" class="confirm-button">现在返回</a>
						</div>
						<div class="float-left other-operations">
							 转至<a href="http://www.winit.com.cn" class="m-xs-lr">万邑联</a>
							 <!-- 或
							<a href="javascript:void(0)" onclick="subgo()" class="m-xs-lr">授权管理</a>-->
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- /content -->
	<!-- /content -->
	<!-- footer -->
	<div id="footer" class="app-footer b-t" role="footer">
		<div class="text-center">Copyright WINIT CORPORATION. All Rights Reserved</div>
	</div>
	<!-- /footer -->
	<script src="js/jquery/1.12.4/jquery.min.js"></script>
	<script src="js/bootstrap/js/bootstrap.min.js"></script>
	<script src="js/common.js"></script>
	<script>
		$(function() {
			//倒计时
			$.fn.countDown = function() {
				var wait = $('#countDown').text();
				var _this = $(this);
				+function timeOut() {
					if (wait == 0) {
						window.history.back();
					} else {
						setTimeout(function() {
							wait--;
							_this.text(wait);
							timeOut();
						}, 1000)
					}
				}()
			}
			$('#countDown').countDown()
		})
		
		function subgo(){
		
			window.history.back();
	}
	</script>
</body>
</html>